﻿using System.Web.Mvc;

namespace ManagementSystem.Areas.BMS
{
    public class BMSAreaRegistration : AreaRegistration 
    {
        public override string AreaName 
        {
            get 
            {
                return "BMS";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            context.MapRoute(
                "BMS_error",
                "BMS/Error/{id}",
                new { controller = "Error", action = "Index", id = UrlParameter.Optional },
                new string[] { "ManagementSystem.Areas.BMS.Controllers" }
            );
            context.MapRoute(
                "BMS_default",
                "BMS/{controller}/{action}/{id}",
                new { controller = "Base", action = "Index", id = UrlParameter.Optional },
                new string[] { "ManagementSystem.Areas.BMS.Controllers" }
            );
        }
    }
}